package com.hdu.dao;

import com.hdu.dto.UrlDto;
import com.hdu.pojo.VisitedUrl;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface URLDAO {
    VisitedUrl getVisitedUrlById(Long id);

    boolean addVisitedUrl(VisitedUrl visitedUrl);

    boolean updateVisitedUrl(VisitedUrl visitedUrl);

    boolean deleteVisitedUrl(Long id);

    Integer getVisitedUrlCountsByUrl(String url);

    boolean incrementVisitedCount(String url);

    boolean updateCountByUrl(UrlDto urlDto);
}
